package com.lh.service.impl;

import com.lh.entity.EduCollection;
import com.lh.dao.EduCollectionMapper;
import com.lh.entity.EduCourse;
import com.lh.service.IEduCollectionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lh
 * @since 2021-06-19
 */
@Service
public class EduCollectionServiceImpl extends ServiceImpl<EduCollectionMapper, EduCollection> implements IEduCollectionService {


    @Resource
    private EduCollectionMapper collectionMapper;

    /**
     * 收藏信息
     *
     * @param userid
     * @return
     */
    @Override
    public List<EduCourse> collectionList(String userid) {
      List<EduCourse> list= baseMapper.collectionMapper(userid);
      return list;

    }
}
